<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class PluginCounterRecord extends Model
{
    use SoftDeletes;
    protected $table = 'plugin_counter_record';
    protected $fillable = [
        'plugin_counter_id',
        'amount'
    ];
    protected $dateFormat = 'Y-m-d H:i:s';
    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format($this->dateFormat); // 使用模型中定义的 $dateFormat
    }
}
